package com.woniuxy.dudugua.mapper;

import com.woniuxy.dudugua.entity.ReturnGoods;
import com.woniuxy.dudugua.entity.ReturnGoodsExample;
import java.util.List;
import java.util.Map;

import com.woniuxy.dudugua.util.view.ReturnGoodsAndProductView;
import com.woniuxy.dudugua.util.view.ReturnGoodsView;
import com.woniuxy.dudugua.util.view.ReturnProductView;
import org.apache.ibatis.annotations.Param;

public interface ReturnGoodsMapper {
    long countByExample(ReturnGoodsExample example);

    int deleteByExample(ReturnGoodsExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(ReturnGoods record);

    int insertSelective(ReturnGoods record);

    List<ReturnGoods> selectByExample(ReturnGoodsExample example);

    ReturnGoods selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") ReturnGoods record, @Param("example") ReturnGoodsExample example);

    int updateByExample(@Param("record") ReturnGoods record, @Param("example") ReturnGoodsExample example);

    int updateByPrimaryKeySelective(ReturnGoods record);

    int updateByPrimaryKey(ReturnGoods record);

    List<ReturnProductView> selectByOrderId(int orderId);

    List<ReturnGoodsAndProductView> selectByUserId(int userId);

    List<ReturnGoodsAndProductView> selectReturnProductViewByReturnId(int returnId);

    List<ReturnGoodsView> selectAllReturnGoods(Map<String, Integer> map);

    Integer selectCountById(Integer userId);
}